﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="RecordDetail.aspx.cs" Inherits="StudentAppointmentPlatform.RecordDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script language="javascript" type="text/javascript">
        function myPrint() {
            originHtml = window.document.body.innerHTML;
            startStr = "<!--startprint-->";
            endStr = "<!--endprint-->";
            printHtml = originHtml.substr(originHtml.indexOf(startStr) + 17);
            printHtml = printHtml.substring(0, printHtml.indexOf(endStr));
            window.document.body.innerHTML = "<body>" + printHtml + "</body>";
            window.print();            
        }
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager runat="server"></asp:ScriptManager>
    <asp:UpdatePanel runat="server" ID="upRecord">
        <ContentTemplate>
            <!--startprint-->
            <h2>预约记录详情</h2>
            <div class="info">
                <fieldset class="serviceDetail">
                    <legend>预约信息</legend>
                    <p>
                        <asp:Label runat="server" AssociatedControlID="lbApplicant">申请人:</asp:Label>
                        <asp:Label ID="lbApplicant" runat="server" CssClass="textEntry"></asp:Label>
                    </p>
                    <p>
                        <asp:Label runat="server" AssociatedControlID="lbCreatTime">申请提交时间:</asp:Label>
                        <asp:Label ID="lbCreatTime" runat="server" CssClass="textEntry"></asp:Label>
                    </p>
                    <p>
                        <asp:Label runat="server" AssociatedControlID="lbServiceName">预约服务:</asp:Label>
                        <asp:Label ID="lbServiceName" runat="server" CssClass="textEntry"></asp:Label>
                    </p>
                    <p>
                        <asp:Label runat="server" AssociatedControlID="lbDay">预约日期:</asp:Label>
                        <asp:Label ID="lbDay" runat="server" CssClass="textEntry"></asp:Label>
                    </p>
                    <p>
                        <asp:Label runat="server" AssociatedControlID="lbTimeBucket">预约时间段:</asp:Label>
                        <asp:Label ID="lbTimeBucket" runat="server" CssClass="textEntry"></asp:Label>
                    </p>                   
                    <p>
                        <asp:Label runat="server" AssociatedControlID="lbStatus">预约状态:</asp:Label>
                        <asp:Label ID="lbStatus" runat="server" CssClass="textEntry"></asp:Label>
                    </p>                                     
                    <p>
                        <asp:Label runat="server" AssociatedControlID="lbDirectorName">审批人:</asp:Label>
                        <asp:Label ID="lbDirectorName" runat="server" CssClass="textEntry" Enabled="False"></asp:Label>
                    </p>
                    <p>
                        <asp:Label runat="server" AssociatedControlID="lbApproveTime">审批日期:</asp:Label>
                        <asp:Label ID="lbApproveTime" runat="server" CssClass="textEntry" Enabled="False"></asp:Label>
                    </p>
                </fieldset>
                <!--endprint-->
                <p class="submitButton">                   
                    <asp:Button runat="server" ID="btnPrint" Text="打印" OnClientClick="myPrint()"/>
                    <asp:Button ID="btnBack" runat="server" Text="返回" OnClick="btnBack_OnClick"/>
                </p>
            </div>

            <div class="comment">
                <div runat="server" ID="StudentCommentArea">
                    <fieldset>
                        <legend>学生评论区</legend>
                        <p>
                            <asp:Label runat="server" AssociatedControlID="tbComment">评价:</asp:Label><br/>
                            <asp:TextBox ID="tbComment" runat="server" TextMode="MultiLine" Enabled="False"></asp:TextBox>                          
                        </p>
                    </fieldset>
                    <p class="submitButton">
                        <asp:Button runat="server" ID="btnComment" Text="提交评价" Visible="False" OnClick="btnComment_OnClick"/>                       
                    </p>
                </div>
                <div runat="server" id="ApprovalArea">
                    <fieldset>
                        <legend>负责人审批区</legend>
                        <p>
                            <asp:Label runat="server" AssociatedControlID="tbApproval">批注:</asp:Label><br/>
                            <asp:TextBox ID="tbApproval" runat="server" TextMode="MultiLine" Enabled="False"></asp:TextBox><br/>
                            <asp:RadioButton runat="server" ID="rbApprove" Text="同意" TextAlign="Left" CssClass="aspRB_Type" GroupName="Approval" Enabled="False"/>
                            <asp:RadioButton runat="server" ID="rbReject" Text="拒绝" TextAlign="Left" CssClass="aspRB_Type" GroupName="Approval" Enabled="False"/>                 
                        </p>
                    </fieldset>
                    <p class="submitButton">
                        <asp:Button runat="server" ID="btnApproval" Text="提交审批" visible="False" OnClick="btnApproval_OnClick"/>                       
                    </p>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="FooterContent" runat="server">
</asp:Content>
